import { getLevelFirst, getLevelZero } from '@/utils';

export const ExpertsTabSwitch = (curRes) => {
  if (curRes?.['/expertInfoController/createCompanyID']) {
    return {
      createCompanyID: getLevelZero(),
      params: 'createCompanyID',
    };
  } else if (curRes?.['/expertInfoController/createDepartmentID']) {
    return {
      createDepartmentID: getLevelFirst(),
      params: 'createDepartmentID',
    };
  }
};
